package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class InviteRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Send_Invitation";

    private int babyID;

    private String invitePhone;

    private String inviteName;

    public int getBabyID() {
        return babyID;
    }

    public void setBabyID(int babyID) {
        this.babyID = babyID;
    }

    public String getInvitePhone() {
        return invitePhone;
    }

    public void setInvitePhone(String invitePhone) {
        this.invitePhone = invitePhone;
    }

    public String getInviteName() {
        return inviteName;
    }

    public void setInviteName(String inviteName) {
        this.inviteName = inviteName;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        InviteRequestBody body = new InviteRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setBabyID(getBabyID());
        body.setInvitePhone(getInvitePhone());
        body.setInviteName(getInviteName());
        return body;
    }

    private class InviteRequestBody extends BaseTokenRequestBody {

        @SerializedName("BabyID")
        private int babyID;

        @SerializedName("BeInviteMobilePhone")
        private String invitePhone;

        @SerializedName("UserMemberName")
        private String inviteName;

        public int getBabyID() {
            return babyID;
        }

        public void setBabyID(int babyID) {
            this.babyID = babyID;
        }

        public String getInvitePhone() {
            return invitePhone;
        }

        public void setInvitePhone(String invitePhone) {
            this.invitePhone = invitePhone;
        }

        public String getInviteName() {
            return inviteName;
        }

        public void setInviteName(String inviteName) {
            this.inviteName = inviteName;
        }

        public InviteRequestBody() {
            setSv(BaseRequestConfig.SV_INVITE_GET);
        }
    }
}
